package com.ryx.service;

import com.ryx.entity.SysPermission;
import com.ryx.vo.req.PermissionAddReqVo;
import com.ryx.vo.req.PermissionUpdateReqVo;
import com.ryx.vo.resp.PermissionRespNodeVo;

import java.util.List;

/**
 * @BelongsPackage: com.ryx.service
 * @Author: 容永轩
 * @CreateTime: 2020-12-23
 * @Description:
 */
public interface PermissionService {

    List<SysPermission> selectAll();

    List<PermissionRespNodeVo> selectAllMenuByTree();

    SysPermission addPermission(PermissionAddReqVo vo);

    List<PermissionRespNodeVo> permissionTreeList(String userId);

    List<PermissionRespNodeVo> selectAllTree();

    void updatePermission(PermissionUpdateReqVo vo);

    //删除关联
    void deletedPermission(String permissionId);

    List<String> getPermissionByUserId(String userId);

    List<SysPermission> getPermissions(String userId);

}
